package com.xinou.daily_report.expand.sso.mini;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author lizhongyuan
 */
@Data
@AllArgsConstructor
public class MiniToken implements AuthenticationToken {

	private String webToken;

	/**
	 * 唯一
	 */
	private Long userId;

	@Override
	public Object getPrincipal() {
		return userId;
	}

	@Override
	public Object getCredentials() {
		return webToken;
	}
}